package com.guslegend.spzx.manager;

import com.guslegend.spzx.common.log.annotation.EnableLogAspect;
import com.guslegend.spzx.manager.properties.MinioProperties;
import com.guslegend.spzx.manager.properties.UserAuthProperties;
import lombok.Data;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author: guslegend
 * @description: 启动类
 * @create: 2025-04-29 08:57
 **/
@SpringBootApplication
@ComponentScan(basePackages = "com.guslegend.spzx")
@Data
@ConfigurationProperties(prefix = "spzx.auth")
@EnableConfigurationProperties({UserAuthProperties.class, MinioProperties.class})
@EnableLogAspect
@EnableScheduling
@EnableAsync
public class ManagerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManagerApplication.class , args) ;

    }
}
